import java.rmi.Naming;


public class LockServer {

	public static void main(String[] args) {
		try{
			Naming.rebind("LockServ", new LockService());
			System.out.println("LockServer is ready . . .");
		}catch(Exception e){
			System.out.println("LockServer failed: " + e);
		}

	}

}